Transfer learning apparatus, transfer learning system, transfer learning method, and recording medium

ABSTRACT

A transfer learning apparatus includes a transfer target data evaluator and an output layer adjuster. The transfer target data evaluator inputs a plurality of labeled transfer target data items each assigned a label of a corresponding evaluation item from among one or more evaluation items to a neural network apparatus having been trained by using a plurality of labeled transfer source data items and including in an output layer output units, the number of which is larger than or equal to the number of evaluation items, and obtains evaluation values output from the respective output units. The output layer adjuster preferentially assigns, to each of the one or more evaluation items, an output unit from which the evaluation value having the smallest difference from the label of the evaluation item is obtained with a higher frequency, as an output unit that outputs the evaluation value of the evaluation item.

BACKGROUND

1. Technical Field

The present disclosure relates to a transfer learning apparatus, atransfer learning system, a transfer learning method, and a recordingmedium. In particular, the present disclosure relates to transferlearning in a neural network apparatus.

2. Description of the Related Art

In recent years, studies have been conducted on transfer learning inneural networks. Transfer learning in neural networks is an adaptationfor using a result obtained by learning transfer source data items, infeature extraction such as classification or regression of transfertarget data items.

For example, in Maxime Oquab, Leon Bottou, Ivan Laptev, Josef Sivic“Learning and Transferring Mid-Level Image Representations usingConvolutional Neural Networks”, CVPR, June 2014 <hal-00911179v1>(hereinafter, referred to as Non-patent Literature), a transfer learningmethod has been proposed in which a multi-layer neural network that hasbeen trained through deep learning by using transfer source data itemsis further trained to be adaptive to transfer target data items.Specifically, the following method has been proposed in Non-patentLiterature.

A first multi-layer neural network, which is a multi-layer neuralnetwork trained by using a plurality of first data items, is prepared.In transfer learning, the configuration of some of the layers of thefirst multi-layer neural network is changed to obtain a new multi-layerneural network. The new multi-layer neural network is trained by using aplurality of second data items to obtain a second multi-layer neuralnetwork. The plurality of first data items serve as transfer source dataitems, whereas the plurality of second data items serve as transfertarget data items.

In transfer learning disclosed by Non-patent Literature, lower layersfrom the input layer to a certain hidden layer of the multi-layer neuralnetwork that has been trained through deep learning are used as ageneral-purpose feature extractor without modifying the configurationthereof. In contrast, upper layers from a hidden layer that accepts anoutput of the certain hidden layer to the output layer of themulti-layer neural network are replaced with newly configured adaptivelayers (that is, new hidden and output layers), and the adaptive layersare trained by using the transfer target data items.

Transfer learning disclosed by Non-patent Literature is performed in thefollowing manner. First, the first multi-layer neural network thatincludes a plurality of layers C1 to C5 and FC6 to FC8 and that has beentrained by using the plurality of first data items, which serve astransfer source data items (a large number of available labeled images),is prepared. Then, the layer FC8 is removed from the first multi-layerneural network, and two adaptive layers FCa and FCb are added to obtaina new multi-layer neural network. The new multi-layer neural network isthen trained by using the plurality of second data items, which serve astransfer target data items, to obtain the second multi-layer neuralnetwork.

Non-patent Literature reports an experiment as follows. The multi-layerneural network that is emulated by software that runs on an imageprocessor is trained through deep learning by using approximately 1.2million transfer source images serving as transfer source data items.Then, the above-described transfer learning is performed by usingtransfer target images that serve as transfer target data items and aredifferent types of images. The report indicates that the recognitionaccuracy of an object and an action depicted in the transfer targetimages improves as a result of transfer learning even if the transfertarget images are types of images different from those of the transfersource images.

However, the inventors have noticed some issues that might decrease thelearning effects of transfer learning disclosed by Non-patentLiterature.

SUMMARY

One non-limiting and exemplary embodiment provides a novel transferlearning apparatus suitable for transfer learning in a neural networkapparatus.

In one general aspect, the techniques disclosed here feature a transferlearning apparatus including a transfer target data evaluator thatinputs a plurality of labeled transfer target data items to a neuralnetwork apparatus, each of the plurality of labeled transfer target dataitems being assigned a label of a corresponding evaluation item fromamong one or more evaluation items, the neural network apparatus havingbeen trained by using a plurality of labeled transfer source data itemsand including in an output layer one or more output units, the number ofwhich is larger than or equal to the number of evaluation items, andthat obtains evaluation values output from the respective output units;and an output layer adjuster that preferentially assigns, to each of theone or more evaluation items, an output unit from which the evaluationvalue having the smallest difference from the label of the evaluationitem is obtained with a higher frequency among the output units, as anoutput unit that outputs the evaluation value of the evaluation item.

According to the aspect of the present disclosure, transfer leaning foradaptation to transfer target data items is implemented by assigning, toeach of evaluation items of transfer target data items, an output unitthat outputs an evaluation value of the evaluation item, while using aconfiguration and weight values of the neural network apparatus thathave been set through learning performed using transfer source dataitems.

Note that the transfer source data items correspond to the plurality offirst data items described in the “BACKGROUND” section and may include aplurality of pixel values included in each of a plurality of images usedwhen the weight values of the neural network apparatus are determined.

In addition, the transfer target data items may include a plurality ofpixel values included in each of a plurality of images used for transferlearning of the neural network apparatus configured using the transfersource data items.

Note that the transfer source data items (transfer source images) andthe transfer target data items (transfer target images) are data items(images) of different types. The transfer target images are, forexample, medical images, such as images of (part of) organs. Thetransfer source images are, for example, non-medical images, such asimages of general objects (e.g., animals, vehicles, and plants). Thenumber of transfer source images is far larger than the number oftransfer target images. For example, as for an example of generallyavailable datasets, the number of medical image data items (transfertarget images) amounts to several tens to several hundreds of dataitems, whereas the number of general image data items (transfer sourceimages) exceeds 14 million data items, which is more than ten thousandtimes the number of medical image data items.

Accordingly, a transfer learning apparatus is obtained which saves thetime and effort for changing the configuration and weight values of theneural network apparatus by using the transfer target data items duringtransfer learning and which is free from unwanted effects, such asoverfitting and a decrease in the recognition accuracy that may occur asa result of changing the configuration and the weight values.

It should be noted that general or specific embodiments may beimplemented as a system, a method, an integrated circuit, a computerprogram, a computer-readable recording medium, or any selectivecombination thereof. Examples of the computer-readable recording mediuminclude a nonvolatile recording medium, for example, a Compact Disc-ReadOnly Memory (CD-ROM).

Additional benefits and advantages of the disclosed embodiments willbecome apparent from the specification and drawings. The benefits and/oradvantages may be individually obtained by the various embodiments andfeatures of the specification and drawings, which need not all beprovided in order to obtain one or more of such benefits and/oradvantages.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a conceptual diagram that describes a computation model of acomputation performed by a neural network apparatus;

FIG. 2 is a diagram that describes an example of learning performed bythe neural network apparatus to solve a classification problem;

FIG. 3 is a diagram that describes an example of learning performed bythe neural network apparatus to solve a regression problem;

FIG. 4 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus according to a firstembodiment;

FIG. 5 is a flowchart illustrating an example of transfer learningaccording to the first embodiment;

FIG. 6 is a diagram illustrating an example of labeled transfer targetdata items used in a classification problem;

FIG. 7A is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for a category“lesion”;

FIG. 7B is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for a category“non-lesion”;

FIG. 8 is a diagram illustrating an example of assignment of outputunits to the categories “lesion” and “non-lesion”;

FIG. 9 is a diagram illustrating an example of labeled transfer targetdata items used in a regression problem;

FIG. 10A is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for anattribute “strength level”;

FIG. 10B is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for anattribute “balance”;

FIG. 10C is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for anattribute “stamina”;

FIG. 11 is a diagram illustrating an example of assignment of outputunits to the attributes “strength level”, “balance”, and “stamina”;

FIG. 12 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus according to a secondembodiment;

FIG. 13 is a flowchart illustrating an example of transfer learningaccording to the second embodiment;

FIG. 14 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus according to a thirdembodiment;

FIG. 15 is a flowchart illustrating an example of transfer learningaccording to the third embodiment;

FIG. 16 is a diagram illustrating an example of related labels oftransfer source data items used in a classification problem;

FIG. 17 is a diagram illustrating an example of related labels oftransfer source data items used in a regression problem;

FIG. 18 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus according to a fourthembodiment;

FIG. 19 is a flowchart illustrating an example of transfer learningaccording to the fourth embodiment;

FIG. 20 is a diagram illustrating an example of a selection screenpresented to a user;

FIG. 21 is a diagram illustrating an example of workflow data;

FIG. 22 is a diagram illustrating an example of a selection screenpresented to a user;

FIG. 23 is a diagram illustrating an example of a selection screenpresented to a user;

FIG. 24 is a diagram illustrating an example of a selection screenpresented to a user;

FIG. 25 is a block diagram illustrating an example of a hardwareconfiguration for implementing a transfer learning system; and

FIG. 26 is a schematic diagram illustrating an example of the transferlearning system that uses a data server.

DETAILED DESCRIPTION Underlying Knowledge Forming Basis of PresentDisclosure

The inventors have noticed some issues that might decrease the learningeffects of transfer learning disclosed by Non-patent Literaturedescribed in the “BACKGROUND” section.

As described in the “BACKGROUND” section, lower layers of a multi-layerneural network that has been trained through deep learning are usedwithout modifying the configuration thereof, whereas upper layers arenewly configured and are trained to be adaptive to transfer target dataitems. However, there is no usable criterion for clearly defining asuitable range of the lower layers, and newly configuring the upperlayers requires the time and effort. In addition, in the case wheretransfer target data items are data items of a relatively small scale,overfitting may occur as a result of training the new upper layers byusing the small-scale data items from the initial state. Further, sincethe lower layers and the upper layers are trained by using differenttypes of data items, unwanted effects such as a decrease in therecognition accuracy may occur depending on the combination of dataitems.

The inventors have enthusiastically conducted studies to deal with suchissues and have conceived a transfer learning apparatus, a transferlearning system, and a transfer learning method disclosed below.

A transfer learning apparatus according to one disclosed aspect includesa transfer target data evaluator that inputs a plurality of labeledtransfer target data items to a neural network apparatus, each of theplurality of labeled transfer target data items being assigned a labelof a corresponding evaluation item from among one or more evaluationitems, the neural network apparatus having been trained by using aplurality of labeled transfer source data items and including in anoutput layer one or more output units, the number of which is largerthan or equal to the number of evaluation items, and that obtainsevaluation values output from the respective output units; and an outputlayer adjuster that preferentially assigns, to each of the one or moreevaluation items, an output unit from which the evaluation value havingthe smallest difference from the label of the evaluation item isobtained with a higher frequency among the output units, as an outputunit that outputs the evaluation value of the evaluation item.

With such a configuration, transfer leaning for adaptation to transfertarget data items is performed, as a result of assignment of outputunits that output evaluation values of corresponding evaluation items ofthe transfer target data items, by using a configuration and weightvalues of the neural network apparatus that are set through learningperformed using transfer source data items.

Accordingly, a transfer learning apparatus is obtained which saves thetime and effort for changing the configuration and weight values of theneural network by using the transfer target data items during transferlearning and which is free from unwanted effects, such as overfittingand a decrease in the recognition accuracy that may occur as a result ofchanging the configuration and the weight values.

In addition, the output layer adjuster may compute, for each of the oneor more evaluation items, a frequency distribution of the output unitsfrom which the evaluation value having the smallest difference from thelabel of the evaluation item is obtained for the plurality of labeledtransfer target data items, preferentially select, from amongcombinations for associating each of the one or more evaluation itemswith a different one of the output units, a combination for which a sumof the frequencies of the associated output units is larger, and assign,to each of the one or more evaluation items, the output unit associatedwith the evaluation item by the selected combination as an output unitfor the evaluation item.

With such a configuration, output units that output evaluation values ofcorresponding evaluation items of the transfer target data items may beappropriately assigned.

In addition, the transfer learning apparatus may further include aweight adjuster that updates, by using a weight value that has beenlearned with the plurality of labeled transfer source data items as aninitial value, the weight value in the neural network apparatus throughsupervised learning using the plurality of labeled transfer target dataitems.

With such a configuration, the weight value used in the neural networkare updated through learning based on the transfer target data items, byusing the learned weight value as the initial value. Accordingly,overfitting that may occur when learning is performed based on a smallnumber of transfer target data items without using the learned weightvalue may be suppressed.

In addition, the weight adjuster may set weight values of all unitsincluded in the neural network apparatus as targets to be updated.

With such a configuration, a decrease in the recognition accuracy, whichmay occur in the case only the weight values used in the neural networkapparatus are updated only for some units, such as the case where onlyweight values of units located in upper layers of a multi-layer neuralnetwork are updated, may be suppressed.

In addition, each of the plurality of labeled transfer source data itemsmay be assigned a label corresponding to one of the output units, andthe weight adjuster may further update the weight value in the neuralnetwork apparatus through supervised learning using labels correspondingto the output units assigned by the output layer adjuster from among thelabels assigned to the plurality of labeled transfer source data items.

With such a configuration, the weight values obtained by learning basedon the plurality of labeled transfer source data items can be updatedthrough relearning that is performed by using only the labels of thetransfer source data items that are highly related to the evaluationitems of the transfer target data items. In this way, a decrease in therecognition accuracy, which may occur as a result of the labels of thetransfer source data items that are not highly related to the evaluationitems of the transfer target data items serving as noise, may besuppressed.

In addition, the weight adjuster may perform unsupervised learning ineach of one or more hidden layers included in the neural networkapparatus prior to the supervised learning.

With such a configuration, it may be expected that the recognitionaccuracy is improved by performing unsupervised learning on alayer-by-layer basis in advance.

In addition, the neural network apparatus may include in the outputlayer the output units, the number of which is larger than the number ofevaluation items, and the transfer learning apparatus may furtherinclude a learning deficiency detector that inputs one or more unlabeledtransfer target data items to the neural network apparatus, obtains anevaluation value output from an output unit that is not assigned by theoutput layer adjuster among the output units, and detects deficiency inlearning if the evaluation value deviates from a reference range.

As the reference range, a range of values that contradict with theoutput values of the output units that have not been assigned by theoutput layer adjuster may be used. Before detection of deficiency inlearning, for example, the neural network apparatus may be trained sothat the output values of the output units that have not been assignedby the output layer adjuster are equal to a specific value, such as 0.In this case, deficiency in learning is detected when the evaluationvalue deviates from the reference range including the specific value.

With such a configuration, deficiency in transfer learning for beingadaptive to the unlabeled transfer target data items in the neuralnetwork apparatus is detectable. Accordingly, it is indicated thatfurther measures for adaptation, such as additional learning, is needed.

In addition, the transfer learning apparatus may further include acorrect solution obtainer that accepts, in a case where deficiency inlearning is detected for the unlabeled transfer target data item, alabel corresponding to the unlabeled transfer target data item from auser, and the weight adjuster may update the weight value in the neuralnetwork apparatus through supervised learning using the label acceptedfrom the user and the unlabeled transfer target data item,

With such a configuration, by accepting, from the user, a label for theunlabeled transfer target data item for which deficiency in transferlearning is detected, additional learning may be performed by using thelabel and the unlabeled transfer target data item.

In addition, the correct solution obtainer may accept, from the user, alabel that is common to a plurality of unlabeled transfer target dataitems for which evaluation values output from a single output unit thatis not assigned by the output layer adjuster deviate from the referencerange, and the weight adjuster may update the weight value in the neuralnetwork apparatus through supervised learning using the label acceptedfrom the user and the plurality of unlabeled transfer target data items.

With such a configuration, additional learning may be performed by usinga label accepted from the user and the plurality of unlabeled transfertarget data items.

In addition, each of the plurality of labeled transfer target data itemsmay be further assigned an associative data item, the correct solutionobtainer may accept, from the user, an associative data item for theunlabeled transfer target data item, and the weight adjuster may performthe supervised learning by using a label of a labeled transfer targetdata item that is assigned the associative data item accepted from theuser and the unlabeled transfer target data item.

With such a configuration, the user is permitted to specify a label ofthe unlabeled transfer destination data item on the basis of theassociative data item when it is difficult for the user to directlyspecify the label for the unlabeled transfer target data item. In thisway, additional learning may be performed by using the label and theunlabeled transfer target data item.

A transfer learning method according to one disclosed aspect includesperforming a first process by using a neural network including aplurality of units; performing a second process by using the neuralnetwork; and performing a third process; wherein a plurality of weightvalues for the plurality of units are determined by using a plurality offirst datasets prior to the first process and the second process,wherein the plurality of units include a plurality of output layer unitsincluded in an output layer of the neural network, and each of theplurality of first datasets includes a plurality of pixel values of animage not related to a first subject matter, wherein the first processincludes a fourth process and a fifth process, wherein the fourthprocess includes performing a sixth process n times while incrementing kfrom 1 to n, where n denotes a total number of a plurality of seconddatasets and k is a natural number, the sixth process includinginputting a k-th dataset of the plurality of second datasets to theneural network and obtaining k-th information indicating an output layerunit that outputs a first valid value from among the plurality of outputlayer units, wherein the fifth process includes determining, for each ofthe plurality of output layer units, a probability of outputting thefirst valid value on the basis of a result of the fourth process,wherein the second process includes a seventh process and an eighthprocess, wherein the seventh process includes performing a ninth processm times while incrementing j from 1 to m, where m denotes a total numberof a plurality of third datasets and j denotes a natural number, theninth process including inputting a j-th dataset of the plurality ofthird datasets to the neural network and obtaining j-th informationindicating an output layer unit that outputs a second valid value fromamong the plurality of output layer units, wherein the eighth processincludes determining, for each of the plurality of output layer units, aprobability of outputting the second valid value on the basis of aresult of the seventh process, wherein each of the plurality of seconddatasets and the plurality of third datasets includes a plurality ofpixel values of an image related to the first subject matter, each ofthe plurality of second datasets has attribute information indicating afirst data type, each of the plurality of third datasets has attributeinformation indicating a second data type different from the first datatype, and the number of first datasets is larger than (n+m), and whereinthe third process is a process of selecting two output layer units fromamong the plurality of output layer units on the basis of a result ofthe first process and a result of the second process. The image notrelated to the first subject matter may be a non-organ image and theimage related to the first subject matter may be an organ image, and theattribute information indicating the first data type may be theattribute information indicating a lesion and the attribute informationindicating the second data type may be the attribute informationindicating a non-lesion.

It should be noted that these general or specific embodiments may beimplemented as an apparatus, a system, a method, an integrated circuit,a computer program, a computer-readable recording medium, or anyselective combination thereof.

Embodiments of the present disclosure will be described in detail belowwith reference to the accompanying drawings.

Note that each of the embodiments below describes a general or specificexample. Numerical values, shapes, materials, elements, arrangedpositions and connection forms of the elements, steps, the order of thesteps, and the like described in the following exemplary embodiments aremerely examples, and do not limit the present disclosure. Also, amongelements described in the following exemplary embodiments, elements thatare not included in an independent claim which represents the highestconcept are described as optional elements.

Neural Network Apparatus

A general configuration of a neural network apparatus will be describedbefore embodiments are described.

FIG. 1 is a conceptual diagram that describes a computation model of acomputation performed by a neural network apparatus. As is known, aneural network apparatus is a computation apparatus that performs acomputation in accordance with a computation model that mimics theneural network of living organisms.

As illustrated in FIG. 1, a neural network apparatus 100 includes aninput layer 101, hidden layers 102, and an output layer 103. Each of theinput layer 101, the hidden layers 102, and the output layer 103includes a plurality of units 105 (represented by empty circles), eachof which corresponds to a neuron. The hidden layers 102 include, forexample, two hidden layers 102 a and 102 b; however, the hidden layers102 may include a single hidden layer or three or more hidden layers. Inparticular, a neural network apparatus including a plurality of hiddenlayers is also called a multi-layer neural network apparatus.

Suppose that layers close to the input layer 101 are called lower layersand that layers close to the output layer 103 are called upper layers.In such a case, each of the units 105 serves as a computation elementthat combines computation results received from units in a lower layerin accordance with a weight value (for example, performs a weighted sumcomputation) and then sends the result of combination to a unit in anupper layer.

Functions of the neural network apparatus 100 are defined byconfiguration information and a weight W=[w1, w2, . . . ]. Theconfiguration information indicates the number of layers of the neuralnetwork apparatus 100 and the number of units 105 included in each ofthe layers. The weight W represents weight values used by the respectiveunits 105 in a weighted sum computation.

In the neural network apparatus 100, a weighted sum computation isperformed by the units 105 in the hidden layers 102 and the output layer103 by using the weight W=[w1, w2, . . . ] in response to the units 105in the input layer 101 being fed with element values of input dataX=[x1, x2, . . . ], and element values of output data Y=[y1, y2, . . . ]are output from the units 105 in the output layer 103.

Suppose that the units 105 in the input layer 101 are respectivelyreferred to as an input unit 1, an input unit 2, . . . , an input unitk, . . . , and an input unit n (where k≦n and k and n are naturalnumbers). In such a case, the input data X may be denoted as [x1, x2, .. . , xk, . . . , xn]. In addition, the element values x1, x2, . . . ,xk, . . . , and xn may be respectively input to the input units 1, 2, .. . , k, . . . , and n.

Suppose that the units 105 in the output layer 103 are respectivelyreferred to as an output unit 1, an output unit 2, . . . , an outputunit p, . . . , and an output unit q (where p≦q and p and q are naturalnumbers). In such a case, the output data Y may be denoted as [y1, y2, .. . , yp, . . . , yq]. In addition, the element values y1 , y2, . . . ,yp, . . . , yq may be respectively output from the output units 1, 2, .. . , p, . . . , and q.

Hereinafter, the units 105 in the input layer 101, the units 105 in thehidden layers 102, and the units 105 in the output layer 103 arerespectively referred to as input units, hidden units, and output units.

The embodiments of the present disclosure do not limit how the neuralnetwork apparatus 100 is specifically implemented. The neural networkapparatus 100 may be implemented, for example, by reconfigurablehardware or by software-based emulation.

Transfer learning according to embodiments of the present disclosure isperformed by using the neural network apparatus 100 that has beentrained by using a plurality of labeled transfer source data items. Thatis, the configuration and weight values of the neural network apparatus100 used in transfer learning are set in advance through learningperformed by using the plurality of labeled transfer source data items.

It is assumed in the embodiments of the present disclosure that learningis performed by the neural network apparatus 100 in accordance with anymethod of the related art, and a specific method is not particularlyspecified. For example, learning may be performed by a learningapparatus (not illustrated) connected to the neural network apparatus100 in accordance with a method of the related art described below.

FIG. 2 is a diagram that describes an example of learning performed bythe neural network apparatus 100 to solve a classification problem.

In the example illustrated in FIG. 2, labeled transfer source data itemsinclude images of a television (TV), images of a clock, images of achair, images of a desk, and images of a car. Each of the images isassigned a corresponding one of five labels for the categories “TV”,“clock”, “chair”, “desk”, and “car”. Among the five labels, only thelabel for the correct category of the image has a value of 1, and thelabels for the other categories have a value of 0.

In the neural network apparatus 100 for solving a classificationproblem, each of the output units is associated with a different one ofthe categories into which the input data X is to be classified. Theweight W is adjusted to make, when each input data X is input, theoutput value of the output unit associated with the correct category ofthe input data X closer to 1 and the output values of the other outputunits closer to 0.

In the example illustrated in FIG. 2, the output units of the neuralnetwork apparatus 100 are each associated with a different one of thefive categories “TV”, “clock”, “chair”, “desk”, and “car”. In addition,the weight W is adjusted through supervised learning to make adifference between the output data Y that is output in response to inputof [x1, x2, . . . , ] which represent pixel values of an image includedin the labeled transfer source data items, and the label assigned to theimage smaller.

During the supervised learning, for example, a loss functionrepresenting an error between the label and the output data Y may bedefined by using the input data X, the weight W, and the label, and thenthe weight W may be updated in accordance with a gradient for decreasingthe loss function based on gradient descent.

In particular, in the case where the neural network apparatus 100 is amulti-layer neural network apparatus, the weight values may be adjustedindividually for each hidden layer through unsupervised learning calledlayer-wise pre-training before the supervised learning is performed.With such a configuration, the weight W that makes classification moreaccurate is obtained by the subsequent supervised learning.

During the unsupervised learning, for example, a loss functionrepresenting a certain evaluation value that is not dependent on thelabel may be defined by using the input data X and the weight W, andthen the weight W may be updated in accordance with a gradient fordecreasing the loss function based on gradient descent.

FIG. 3 is a diagram that describes an example of learning performed bythe neural network apparatus 100 to solve a regression problem.

In the example illustrated in FIG. 3, labeled transfer source data itemsinclude lifelog data items of a plurality of people. A lifelog data itemmay be time-series values of actions of a person measured by anaccelerometer or an angular velocity sensor. Each lifelog data item isassigned five labels for attributes “height”, “weight”, “body fat”,“body water”, and “age” of the person. The five labels each indicate acorrect value of the corresponding attribute of the person.

In the neural network apparatus 100 for solving a regression problem,the output units are each associated with a different one of theattributes for performing regression on the input data X. The weight Wis adjusted to make, when each input data item X is input, each of theoutput values of the respective output units closer to the correct valueof the corresponding attribute of the input data X.

In the example illustrated in FIG. 3, the output units of the neuralnetwork apparatus 100 are each associated with a different one of thefive attributes “height”, “weight”, “body fat”, “body water”, and “age”.In addition, the weight W is adjusted through supervised learning tomake a difference between the output data Y that is output in responseto input of a lifelog data item serving as a labeled transfer sourcedata item and the label of the lifelog data item smaller.

Similarly to the classification problem, as a result of layer-wiseunsupervised learning in the regression problem, the weight W that makesregression more accurate is obtained by the subsequent supervisedlearning. In addition, gradient descent is usable for the supervisedlearning and the unsupervised learning, which is similar to the case ofthe classification problem.

As described above, the operation and the learning method of the neuralnetwork apparatus 100 are basically common to the classification problemand the regression problem, except for the fact that definitions of theelement values of the output data Y are different from each other.Accordingly, classification and regression are sometimes collectivelyreferred to as evaluation herein without particularly distinguishingthem from each other. The categories used in classification and theattributes used in regression are sometimes collectively referred to asevaluation items herein. The output values of the output units aresometimes referred to as evaluation values herein.

For example, any available algorithm such as backpropagation is usableto adjust the weight values used in the neural network apparatus 100, inaddition to gradient descent described above. In addition, theconfiguration of the neural network apparatus 100 (for example, additionor deletion of a unit) alone may be changed without adjusting the weightvalues during learning in the neural network apparatus 100 or both theweight value adjustment and the configuration change may be performed.In particular, in a multi-layer neural network apparatus, learning maybe performed individually on a layer-by-layer basis.

Transfer learning in the neural network apparatus 100 that has beentrained by using labeled transfer source data items will be describedbelow in accordance with a plurality of embodiments.

First Embodiment

A transfer learning apparatus according to a first embodiment is atransfer learning apparatus that performs transfer learning to beadaptive to transfer target data items, by assigning each of evaluationitems of the transfer target data items an output unit that outputs anevaluation value of the evaluation item, while using the configurationand weight values of the neural network apparatus that has been trainedby using a plurality of transfer source data items without changing theconfiguration and weight values thereof.

FIG. 4 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus 201 according to thefirst embodiment. FIG. 4 illustrates, along with the transfer learningapparatus 201, a transfer learning system 301 and a labeled transfertarget data storage unit 410. The transfer learning system 301 isimplemented by using the transfer learning apparatus 201. The labeledtransfer target data storage unit 410 stores a plurality of labeledtransfer target data items therein, and the transfer learning apparatus201 obtains the plurality of labeled transfer target data itemstherefrom.

As illustrated in FIG. 4, the transfer learning system 301 includes theneural network apparatus 100 described above and the transfer learningapparatus 201. Individual constituents of the transfer learning system301 may be implemented as software functions that are carried out as aresult of an image processor or microprocessor executing a certainprogram, for example.

The neural network apparatus 100 includes a configuration informationstorage unit 110, a weight storage unit 120, a data input unit 130, adata computing unit 140, and a data output unit 150.

The configuration information storage unit 110 stores configurationinformation. The configuration information indicates the number oflayers included in the neural network apparatus 100 and the number ofunits 105 included in each of the layers.

The weight storage unit 120 stores the weight W. The weight W indicatesweight values used by the respective units 105 for a weighted additioncomputation.

The data input unit 130 receives the input data X to be evaluated, forexample, from a database (not illustrated) located outside the transferlearning system 301.

The data computing unit 140 performs a weighted addition computation byusing the weight values indicated by the weight W in accordance with anarrangement of the units 105 indicated by the configuration information,thereby computing weighted sums at the individual units 105 in responseto input of the input data X to the input units.

The data output unit 150 transmits the output data Y which includes theevaluation values that have been computed by the data computing unit 140as the weighted sums at the individual output units 105.

It is assumed that the configuration information and the weight W of theneural network apparatus 100 are set in advance through learningperformed using a plurality of labeled transfer source data items (notillustrated in FIG. 4) and are respectively stored in the configurationinformation storage unit 110 and the weight storage unit 120, prior totransfer learning. It is also assumed that the neural network apparatus100 includes output units 105, the number of which is larger than orequal to the number of evaluation items of transfer target data items,in accordance with the configuration information.

The transfer learning apparatus 201 includes a transfer target dataevaluating unit 210 and an output layer adjusting unit 220.

The transfer target data evaluating unit 210 obtains a plurality oftransfer target data items from the labeled transfer target data storageunit 410, inputs the plurality of transfer target data items to theneural network apparatus 100, and obtains evaluation values output fromthe respective output units 105 of the neural network apparatus 100.Each of the plurality of transfer target data items is assigned a labelof an evaluation item from among one or more evaluation items that aredifferent from evaluation items of the transfer source data items.

The output layer adjusting unit 220 preferentially assigns, to each ofthe one or more evaluation items of the transfer target data items, anoutput unit from which the evaluation value having the smallestdifference from the label of the evaluation item is obtained with ahigher frequency among the output units, as an output unit that outputsthe evaluation value of the evaluation item. The assignment result maybe stored in the configuration information storage unit 110 asinformation indicating correspondences between the evaluation item andthe output unit.

An example of an operation performed by the transfer learning apparatus201 thus configured will be described next.

FIG. 5 is a flowchart illustrating an example of transfer learningperformed by the transfer learning apparatus 201.

In the transfer learning apparatus 201, the transfer target dataevaluating unit 210 evaluates a plurality of transfer target data itemsby using the neural network apparatus 100 that has been trained by usingtransfer source data items (S101).

FIG. 6 is a diagram illustrating an example of labeled transfer targetdata items used in a classification problem.

In the example illustrated in FIG. 6, the labeled transfer target dataitems include a plurality of lesion images and a plurality of non-lesionimages. The lesion images and the non-lesion images are respectivelyassigned two labels for the categories “lesion” and “non-lesion”. Amongthe two labels, the label for the category into which the image is to beclassified has a value of 1, whereas the other label has a value of 0.

Every time a transfer target data item is input thereto, the neuralnetwork apparatus 100 outputs output data Y=[y1, y2, y3, y4, y5], whichconstituted by evaluation values output from the respective outputunits, in accordance with the configuration information and the weight Wthat are set in advance through learning performed using the transfersource data items.

The transfer target data evaluating unit 210 obtains the output dataY=[y1, y2, y3, y4, y5] for each of the plurality of transfer target dataitems.

The output layer adjusting unit 220 computes, for each evaluation items,a frequency of appearance of the closest evaluation value, whichindicate frequencies of the output units for which an evaluation valuehaving the smallest difference from the label value of the evaluationitem is obtained (S102).

FIG. 7A is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for thecategory “lesion”.

The example in FIG. 7A shows a ratio obtained when a plurality of lesionimages are evaluated, the ratio being a ratio of the number of timeseach of the output values y1, y2, y3, y4, and y5 of the five outputunits is the closest to the value of the label “lesion”, i.e., 1, to thenumber of lesion images that have been evaluated. For example, supposethat 1000 lesion images are evaluated and that the output values y1, y2,y3, y4, and y5 are the closest to 1 for 800 images, 20 images, 40images, 40 images, and 100 images, respectively. In such a case, thedistribution of frequencies of appearance of the closest evaluationvalue illustrated in FIG. 7A is derived.

FIG. 7B is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for thecategory “non-lesion”.

The example in FIG. 7B shows a ratio obtained when a plurality ofnon-lesion images are evaluated, the ratio being a ratio of the numberof times each of the output values y1, y2, y3, y4, and y5 of the fiveoutput units is the closest to the value of the label “non-lesion”,i.e., 1, to the number of non-lesion images that have been evaluated.For example, suppose that 1000 non-lesion images are evaluated and thatthe output values y1, y2, y3, y4, and y5 are the closest to 1 for 550images, 20 images, 30 images, 100 images, and 300 images, respectively.In such a case, the distribution of frequencies of appearance of theclosest evaluation value illustrated in FIG. 7B is derived.

The output layer adjusting unit 220 preferentially selects, from amongcombinations for associating each of the evaluation items with adifferent one of the output units, a combination for which a sum of thefrequencies of appearances of the closest evaluation value for theassociated output units is larger (S103).

As for the examples illustrated in FIGS. 7A and 7B, there are ₅P₂=20combinations for associating each of the categories “lesion” and“non-lesion” with a different one of the five output units. For example,if the output unit that outputs the output value y1 is associated withthe category “lesion” and the output unit that outputs the output valuey5 is associated with the category “non-lesion”, the sum of thefrequencies of appearance of the closest evaluation value for theassociated output units is 0.8+0.3=1.1 This value is larger than the sumof the frequencies of appearance of the closest evaluation value for anyother combination. Accordingly, the output layer adjusting unit 220selects a combination in which the output unit that outputs the outputvalue y1 is associated with the category “lesion” and the output unitthat outputs the output value y5 is associated with the category“non-lesion”.

The output layer adjusting unit 220 does not necessarily need to selecta combination for which the sum of the frequencies of appearance of theclosest evaluation value is the largest from among all the combinations.For example, there may be a very large number of combinations dependingon the number of evaluation items and the number of output units. As aresult, it may be substantially impossible to find a combination forwhich the sum of frequencies of appearance of the closest evaluationvalue is the largest. In such a case, the output layer adjusting unit220 may preferentially select a combination for which the sum of thefrequencies of appearance of the closest evaluation value is largeramong a limited number of combinations. Alternatively, the output layeradjusting unit 220 may preferentially select a combination for which thesum of the frequencies of appearance of the closest evaluation values isthe largest among a limited number of combinations.

The output layer adjusting unit 220 assigns, to each of the one or moreevaluation items, the output unit associated with the evaluation item bythe selected combination as the output unit of the evaluation item(S104). The assignment result may be stored, for example, in theconfiguration information storage unit 110 of the neural networkapparatus 100 as information indicating correspondences between theevaluation item and the output unit.

FIG. 8 is a diagram illustrating an example of assignment of the outputunit to the category “lesion” and assignment of the output unit to thecategory “non-lesion”. In accordance with the selected combination, theoutput unit that outputs the output value y1 is assigned as the outputunit for the category “lesion”, and the output unit that outputs theoutput value y5 is assigned as the output unit for the category“non-lesion”.

As a result of such assignment, the output value y1 that is obtainedwhen a new image, which is an unlabeled transfer target data item, isinput to the neural network apparatus 100 becomes usable as anevaluation value of the image for the category “lesion”. The outputvalue y5 that is obtained when a new image, which is an unlabeledtransfer target data item, is input to the neural network apparatus 100becomes usable as an evaluation value of the image for the category“non-lesion”. In this way, transfer learning to be adaptive to thetransfer target data items is performed.

A specific example regarding the classification problem has beendescribed above. As for a regression problem, transfer learning isperformed in a similar procedure.

FIG. 9 is a diagram illustrating an example of labeled transfer targetdata items used in a regression problem.

In the example illustrated in FIG. 9, the labeled transfer target dataitems include a plurality of lifelog data items. The lifelog data itemsare each assigned three labels for attributes “strength level”,“balance”, and “stamina”.

FIG. 10A is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for theattribute “strength level”.

FIG. 10B is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for theattribute “balance”.

FIG. 10C is a diagram illustrating an example of a distribution offrequencies of appearance of the closest evaluation value for theattribute “stamina”.

The example in FIG. 10A shows a ratio obtained when the plurality oflifelog data items are evaluated, the ratio being a ratio of the numberof times each of the output values y1, y2, y3, y4, and y5 of the fiveoutput units is the closest to the value of the label “strength level”assigned to the lifelog data items, to the number of lifelog data itemsthat have been evaluated.

For example, suppose that 1000 lifelog data items are evaluated and thatthe output values y1, y2, y3, y4, and y5 are the closest to the value ofthe label “strength level” for 250 lifelog data items, 550 lifelog dataitems, 100 lifelog data items, 50 lifelog data items, and 50 lifelogdata items, respectively. In such a case, the distribution offrequencies of appearance of the closest evaluation value illustrated inFIG. 10A is derived.

The examples in FIGS. 10B and 10C respectively show, for the labels“balance” and “stamina”, distributions of frequencies of appearance ofthe closest evaluation value that are derived in a similar manner.

As for the examples in FIGS. 10A, 10B, and 10C, there are ₅P₃=60combinations for associating each of the attributes “strength level”,“balance”, and “stamina” with a different one of the five output units.For example, if the output units that output the output values y2, y5,and y3 are respectively associated with the attributes “strength level”,“balance”, and “attribute”, the sum of the frequencies of appearance ofthe closest evaluation value for the associated output units is0.55+0.6+0.4=1.55. This value is larger than the sum of the frequenciesof appearance of the closest evaluation value of any other combination.Accordingly, the output layer adjusting unit 220 selects a combinationin which the output units that output the output values y2, y5, and y3are associated with the attributes “strength level”, “balance”, and“stamina”, respectively.

FIG. 11 is a diagram illustrating an example of assignment of the outputunits to the attributes “strength level”, “balance”, and “stamina”. Inaccordance with the selected combination, the output units that outputthe output values y2, y5, and y3 are assigned as output units for theattributes “strength level”, “balance”, and “stamina”, respectively.

As a result of such assignment, the output values y2, y5, and y3 thatare obtained when a new lifelog data item, which is an unlabeledtransfer target data item, is input to the neural network apparatus 100becomes usable as the evaluation value of the lifelog data item for theattributes “strength level”, “balance”, and “stamina”, respectively. Inthis way, transfer learning to be adaptive to transfer target data itemsis performed.

As described above, the transfer learning apparatus according to thefirst embodiment, transfer learning to be adaptive to transferdestination data items is performed through assignment of output unitsthat output evaluation values of respective evaluation items of thetransfer target data items by using the configuration and weight valuesof the neural network apparatus 100 that are set through learningperformed using transfer source data items without changing theconfiguration and weight.

Accordingly, a transfer learning apparatus is obtained which saves thetime and effort for changing the configuration and weight values of theneural network apparatus 100 by using transfer target data items duringtransfer learning and which is free from unwanted effects, such asoverfitting and a decrease in the recognition accuracy which may becaused by the configuration and weight value changes.

Although any description has not been given in the first embodiment, theinput data input to the neural network apparatus 100 may be subjected todata formatting processing which includes normalization, thresholdprocessing, noise reduction, and data size standardization, for example.Normalization may be performed on the labels as well as the input data.Either the neural network apparatus 100 or the transfer learningapparatus 201 may perform the data formatting processing. The dataformatting processing enables transfer learning that implements matchingfrom transfer source data items to transfer target data items at a highrate.

Second Embodiment

A transfer learning apparatus according to a second embodiment is atransfer learning apparatus that not only assigns the output units asdescribed in the first embodiment but also updates, by using as aninitial value a weight value obtained as a result of learning based on aplurality of transfer source data items, the weight used in the neuralnetwork apparatus through supervised learning based on a plurality oflabeled transfer target data items.

FIG. 12 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus 202 according to thesecond embodiment. FIG. 12 illustrates, along with the transfer learningapparatus 202, a transfer learning system 302 that is implemented byusing the transfer learning apparatus 202.

As illustrated in FIG. 12, the transfer learning apparatus 202 isequivalent to the transfer learning apparatus 201 according to the firstembodiment additionally including a weight adjusting unit 232.Hereinafter, constituents that are the same or substantially the same asthose of the first embodiment are assigned the same reference signs soas to appropriately omit a description thereof, and additions to thefirst embodiment will be mainly described.

The weight adjusting unit 232 updates, by using the weight valueobtained as a result of learning based on a plurality of transfer sourcedata items as the initial value, the weight value stored in the weightstorage unit 120 of the neural network apparatus 100 through supervisedlearning based on labels of transfer target data items.

An example of an operation performed by the transfer learning apparatus202 thus configured will be described next.

FIG. 13 is a flowchart illustrating an example of transfer learningperformed by the transfer learning apparatus 202.

As illustrated in FIG. 13, as a result of steps S101 to S104, each ofthe evaluation items of transfer target data items is assigned acorresponding one of the output units. By assigning the output unitsthat output the evaluation values of the transfer target data items tothe corresponding evaluation items, supervised learning using the labelsof the transfer target data items can be performed.

The weight adjusting unit 232 obtains a plurality of labeled transfertarget data items from the labeled transfer target data storage unit410. The weight adjusting unit 232 then updates the weight value used bythe neural network apparatus 100 through supervised learning based onthe plurality of labeled transfer target data items that have beenobtained, by using as the initial value the weight value that isobtained as a result of learning based on the plurality of transfersource data items (S205).

As described above, during the supervised learning, for example, a lossfunction representing an error between the label and the output data Ymay be defined by using the input data X, the weight W, and the label,and then the weight W may be updated in accordance with a gradient fordecreasing the loss function based on gradient descent.

In particular, in the case where the neural network apparatus 100 is amulti-layer neural network apparatus, the weight values may be adjustedindividually for individual layers through unsupervised learning calledlayer-wise pre-training before the supervised learning is performed.With such a configuration, the weight W that makes evaluation moreaccurate is obtained by the subsequent supervised learning.

During the unsupervised learning, for example, a loss functionrepresenting a certain evaluation value that is not dependent on thelabel may be defined by using the input data X and the weight W, andthen the weight W may be updated in accordance with a gradient fordecreasing the loss function based on gradient descent.

In addition, as described in the first embodiment, the input data inputto the neural network apparatus 100 may be subjected to data formattingprocessing which includes normalization, threshold processing, noisereduction, and data size standardization, for example. Normalization maybe performed on the labels as well as the input data. Either the neuralnetwork apparatus 100 or the transfer learning apparatus 202 may performthe data formatting processing.

As described above, the transfer learning apparatus 202 according to thesecond embodiment updates, by using the learned weight values as theinitial values, the weight values used in the neural network apparatus100 through learning based on transfer target data items. Accordingly,the transfer learning apparatus 202 is able to suppress overfitting,which may occur when learning is performed by using a small number oftransfer target data items without using the learned weight values.

In addition, the weight adjusting unit 232 may update weight values ofall the units of the neural network apparatus 100 through learning basedon the transfer target data items.

Such a configuration can suppress a decrease in the recognition accuracythat may occur when only the weight values used by some of the units ofthe neural network apparatus 100 are updated, such as when only theweight values of the units located in the upper layers of a multi-layerneural network apparatus are updated.

Third Embodiment

A transfer learning apparatus according to a third embodiment is atransfer learning apparatus that not only assigns the output units asdescribed in the first embodiment but also updates the weight valuesused in the neural network apparatus through relearning based only onlabels of transfer source data items that are highly related to theevaluation items of transfer target data items, by using the weightvalues obtained as a result of learning based on the plurality oftransfer source data items as the initial values.

FIG. 14 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus 203 according to thethird embodiment. FIG. 14 illustrates, along with the transfer learningapparatus 203, a transfer learning system 303 that is implemented byusing the transfer learning apparatus 203, and a labeled transfer sourcedata storage unit 420 that stores a plurality of labeled transfer sourcedata items in a manner such that the transfer learning apparatus 203 isable to obtain the plurality of labeled transfer source data items.

As illustrated in FIG. 14, the transfer learning apparatus 203 isequivalent to the transfer learning apparatus 201 according to the firstembodiment additionally including a weight adjusting unit 233.Hereinafter, constituents that are the same or substantially the same asthose of the first embodiment are assigned the same reference signs soas to appropriately omit a description thereof, and additions to thefirst embodiment will be mainly described.

It is assumed that the plurality of transfer source data items stored inthe labeled transfer source data storage unit 420 are assignedrespective labels each associated with a corresponding one of the outputunits of the neural network apparatus 100, prior to transfer learning.The plurality of labeled transfer source data items may be transfersource data items used in learning that is performed to set theconfiguration information and weight W of the neural network apparatus100 in advance. It is also assumed that information indicatingcorrespondences between one of the evaluation items of the labeledtransfer source data items and a corresponding one of the output unitsof the neural network apparatus 100 is stored, for example, in theconfiguration information storage unit 110 of the neural networkapparatus 100 during learning performed by using the plurality oflabeled transfer source data items.

The weight adjusting unit 233 updates the weight values stored in theweight storage unit 120 of the neural network apparatus 100 by furtherperforming supervised learning based only on related labels, which arelabels assigned the output units by the output layer adjusting unit 220from among the labels of the transfer source data items, by using theweight values obtained as a result of learning performed using theplurality of transfer source data items as the initial values.

An example of an operation performed by the transfer learning apparatus203 thus configured will be described next.

FIG. 15 is a flowchart illustrating an example of transfer learningperformed by the transfer learning apparatus 203.

As illustrated in FIG. 15, as a result of steps S101 to S104, each ofthe evaluation items of transfer target data items is assigned acorresponding one of the output units.

The weight adjusting unit 233 obtains the plurality of labeled transfersource data items from the labeled transfer source data storage unit420. The weight adjusting unit 233 then updates, by using the weightvalues obtained as a result of learning based on the plurality oftransfer source data items as the initial values, the weight values usedin the neural network apparatus 100 through supervised learning basedonly on the related labels of the plurality of transfer source dataitems that have been obtained (S305).

FIG. 16 is a diagram illustrating an example of the related labels ofthe transfer source data items used in a classification problem.

In the example illustrated in FIG. 16, the related labels of thetransfer source data items are labels “TV” and “car” that arerespectively associated with the output units that output the outputvalues y1 and y5 on the basis of the assignment of the output unitsillustrated in FIG. 8.

The weight adjusting unit 233 adjusts the weight W used in the neuralnetwork apparatus 100 through supervised learning based only on thelabels “TV” and “car” from among the labels “TV”, “clock”, “chair”,“desk”, and “car”.

Only the labels “TV” and “car” are used in supervised learning for theclassification problem. That is, the transfer source data items of thecategories “clock”, “chair”, and “desk” respectively assigned the labels“clock”, “chair”, and “desk” having a value of 1 are not used, and onlythe transfer source data items of the categories “TV” and “car” areused.

During the supervised learning, for example, a loss functionrepresenting errors between the labels “TV” and “car” and element values[y1, y5] of the output data Y, respectively, may be defined by using theinput data X, the weight W, and the labels “TV” and “car”, and then theweight W may be updated in accordance with a gradient for decreasing theloss function based on gradient descent.

The supervised learning is substantially the same as training the neuralnetwork apparatus 100 illustrated in FIG. 16 from which the output unitsfor the categories “clock”, “chair”, and “desk” are removed. That is,the weight W is updated without any constraint imposed by the labels“clock”, “chair”, and “desk”. Accordingly, a decrease in the recognitionaccuracy which may be caused by the labels “clock”, “chair”, and “desk”serving as noise may be effectively suppressed. Such an effect becomesmore significant as the number of output units that are not assigned bythe output layer adjusting unit 220 increases, that is, as the number oflabels that possibly serve as noise increases.

A specific example regarding the classification problem has beendescribed above. As for a regression problem, transfer learning basedonly on the related labels is performed in a similar procedure.

FIG. 17 is a diagram illustrating an example of the related labels ofthe transfer source data items used in a regression problem.

In the example illustrated in FIG. 17, the related labels of thetransfer source data items are labels “weight”, “body fat”, and “age”that are respectively associated with the output units that output theoutput values y2, y3, and y5 on the basis of the assignment of theoutput units illustrated in FIG. 17.

The weight adjusting unit 233 adjusts the weight W used in the neuralnetwork apparatus 100 through supervised learning based only on thelabels “weight”, “body fat”, and “age” from among the labels “height”,“weight”, “body fat”, “body water”, and “age”.

All the transfer source data items are used in the supervised learningfor the regression problem.

In addition, during the supervised learning, a loss functionrepresenting errors between the labels “weight”, “body fat” and “age”and element values [y2, y3, y5] of the output data Y, respectively, maybe defined by using the input data X, the weight W, and the labels“weight”, “body fat”, and “age”, and then the weight W may be updated inaccordance with a gradient for decreasing the loss function based ongradient descent.

The supervised learning is substantially the same as training the neuralnetwork apparatus 100 illustrated in FIG. 17, which is the neuralnetwork apparatus 100 illustrated in FIG. 3 from which the output unitsfor the attributes “height” and “body water” are removed. That is, theweight W is updated without any constraint imposed by the labels“height” and “body water”, Accordingly, a decrease in the recognitionaccuracy which may be caused by the labels “height” and “body water”serving as noise may be effectively suppressed. Such an effect becomesmore significant as the number of output units that are not assigned bythe output layer adjusting unit 220 increases, that is, as the number oflabels that possibly serve as noise increases.

As described in the first embodiment, the input data input to the neuralnetwork apparatus 100 may be subjected to data formatting processingwhich includes normalization, threshold processing, noise reduction, anddata size standardization, for example, in either case of theclassification problem or the regression problem. Normalization may beperformed on the labels as well as the input data. Either the neuralnetwork apparatus 100 or the transfer learning apparatus 203 may performthe data formatting processing.

In addition, when the above-described supervised learning based only onthe related labels is performed, the output units that are not assignedby the output layer adjusting unit 220 may be removed by changing theconfiguration information of the neural network apparatus 100.

As described above, the transfer learning apparatus 203 according to thethird embodiment updates the weight values obtained as a result oflearning based on a plurality of transfer source data items, throughrelearning based only on labels of the transfer source data items thatare highly related to the evaluation items of transfer target dataitems. Such a configuration can suppress a decrease in the recognitionaccuracy which may be caused as a result of the labels of the transfersource data items that are not highly related to the evaluation items ofthe transfer target data items serving as noise.

Note that assignment of the output units described in the firstembodiment and learning based on transfer target data items described inthe second embodiment may be combined with the above-describedrelearning based only the related labels of the transfer source dataitems. For example, the output units may be assigned by evaluatingtransfer target data items by using a neural network apparatus that hasbeen trained by using transfer source data items. Then, relearning basedonly on the related labels of the transfer source data items may beperformed. Then, learning based on transfer target data items may beperformed.

Fourth Embodiment

A transfer learning apparatus according to a fourth embodiment is atransfer learning apparatus that not only assigns the output units asdescribed in the first embodiment and performs learning based ontransfer target data items described in the second embodiment but alsodetects that transfer learning is deficient in the neural networkapparatus to be adaptive to at least the transfer target data items. Inthe fourth embodiment, additional learning that is performed upondetection of deficiency in learning will be also described.

FIG. 18 is a block diagram illustrating an example of a functionalconfiguration of a transfer learning apparatus 204 according to thefourth embodiment. FIG. 18 illustrates, along with the transfer learningapparatus 204, a transfer learning system 304 implemented by using thetransfer learning apparatus 204, an unlabeled transfer target datastorage unit 430, and a user interface unit 440. The unlabeled transfertarget data storage unit 430 stores a plurality of unlabeled transfertarget data items in a manner such that the transfer learning apparatus204 is able to obtain the plurality of unlabeled transfer target dataitems. The user interface unit 440 presents data to a user and acceptsdata from the user.

As illustrated in FIG. 18, compared to the transfer learning apparatus202 according to the second embodiment, the transfer learning apparatus204 additionally includes a weight adjusting unit 234 which is amodification of the weight adjusting unit 232, a learning deficiencydetecting unit 240, and a correct solution obtaining unit 250.Hereinafter, constituents that are the same or substantially the same asthose of the first and second embodiments are assigned the samereference signs so as to appropriately omit a description thereof, andadditions to the first and second embodiments will be mainly described.

The learning deficiency detecting unit 240 obtains evaluation valuesoutput from unrelated units, which are the output units not assigned bythe output layer adjusting unit 220, by inputting one or more unlabeledtransfer target data items to the neural network apparatus 100. Thelearning deficiency detecting unit 240 then detects deficiency inlearning on the basis of deviation of the evaluation values from areference range.

As the reference range, a range of values that contradict with theoutput values of the unrelated units may be used. Before detection ofdeficiency in learning, for example, the neural network apparatus 100may be trained so that the output values of the unrelated units areequal to a specific value, such as 0, during learning performed usingthe transfer target data items. In this case, deficiency in learning isdetected when the evaluation value deviates from the reference rangeincluding the specific value (for example, exceeds a certain threshold).

When the learning deficiency detecting unit 240 detects deficiency inlearning based on an unlabeled transfer target data item, the correctsolution obtaining unit 250 presents the unlabeled transfer target dataitem or an associative data item (described later) of the unlabeledtransfer target data item to a user and accepts a label for theunlabeled transfer target data item from the user. The correct solutionobtaining unit 250 then may assign the label accepted from the user tothe unlabeled transfer target data item to generate a labeled transfertarget data item and may store the labeled transfer target data item inthe labeled transfer target data storage unit 410.

The weight adjusting unit 234 updates the weight values used in theneural network apparatus 100 through supervised learning based on thelabel accepted by the user and the unlabeled transfer target data item.

The user interface unit 440 may include, for example, a display, atouchscreen, a keyboard, and a mouse.

An example of an operation performed by the transfer learning apparatus204 thus configured will be described next.

FIG. 19 is a flowchart illustrating an example of transfer learningperformed by the transfer learning apparatus 204.

As illustrated in FIG. 19, as a result of steps S101 to S104, each ofthe evaluation items of transfer target data items is assigned acorresponding one of the output units. In step S205, learning isperformed by using the transfer target data items.

The learning deficiency detecting unit 240 obtains one or more unlabeledtransfer target data items from the unlabeled transfer target datastorage unit 430, inputs the one or more unlabeled transfer target dataitems to the neural network apparatus 100, and obtains evaluation valuesoutput from the unrelated units (S406). The learning deficiencydetecting unit 240 then detects whether learning is deficient in theneural network apparatus 100 on the basis of whether the evaluationvalues deviate from the reference range (S407).

If deviation of the evaluation values from the reference range (that is,deficiency in learning) is detected (YES in S407), the correct solutionobtaining unit 250 presents, to the user via the user interface unit440, the unlabeled transfer target data items for which the evaluationvalue deviates from the reference range or associative information ofthe transfer target data items, and accepts labels for the transfertarget data items from the user (S408).

The weight adjusting unit 234 updates the weight values used in theneural network apparatus 100 through supervised learning based on thelabels accepted from the user and the unlabeled transfer target dataitems (S409).

FIG. 20 is a diagram illustrating an example of a selection screenpresented to the user via the user interface unit 440. An image group503 includes lesion images stored in the labeled transfer target datastorage unit 410, and an image group 505 includes non-lesion imagesstored in the labeled transfer target data storage unit 410. Images 504and 506 are enlarged images of images respectively selected by the userfrom the image groups 503 and 505. An image 502 is an unlabeled transfertarget data item (hereinafter, referred to as an input image 502) forwhich the evaluation value output from the unrelated unit deviates fromthe reference range.

The user selects an image that is considered to be classified into thesame category as the input image 502 from the image groups 503 and 505,and then presses an OK button 507. In response to pressing of the OKbutton 507, a labeled transfer target data item, which is obtained bylabeling the unlabeled transfer target data item with the label of theselected image, is stored in the labeled transfer target data storageunit 410.

In response to pressing of a relearn button 508, the weight W used inthe neural network apparatus 100 is readjusted by using the labeledtransfer target data items stored in the labeled transfer target datastorage unit 410.

In response to pressing of the OK button 507, a new labeled transfertarget data item is stored in the labeled transfer target data storageunit 410. In response to pressing of the relearn button 508, the weightW is readjusted. In this way, more accurate classification can beperformed for an unlabeled transfer target data item for whichclassification has failed.

The case where unlabeled transfer target data items are time-seriesvalues of, for example, acceleration or angular velocity, such as theaforementioned lifelog data items, will now be described. Unlike theimage information described above, it is difficult for the user todirectly specify values of the labels “strength level”, “balance”, and“stamina” even if such lifelog data items are presented to the user.

Accordingly, lifelog data items that are assigned, in addition to thelabels, associative data items to be referred to in order for the userto presume labels of transfer target data items are stored in thelabeled transfer target data storage unit 410. The associative dataitems are presented to the user to assist the user in specifying thelabels.

For example, workflow data is used as the associative data items.Workflow data indicates an evaluation value, such as a balance scale,that is measured during rehabilitation at a medical facility, forexample.

FIG. 21 is a diagram illustrating an example of the workflow data. Theworkflow data illustrated in FIG. 21 includes a plurality of test itemsrelated to the motor function of a patient. For example, the patient'srisk of fall is evaluated in accordance with results of these testitems.

Transfer target data items for which it is difficult for the user todirectly specify labels, such as lifelog data items, are assignedassociative data items, such as results (for example, “Yes” or “No”) ofthe test items of the workflow data and are stored in the labeledtransfer target data storage unit 410.

FIG. 22 is a diagram illustrating an example of a selection screenpresented to a user via the user interface unit 440. In the exampleillustrated in FIG. 22, information regarding one unlabeled transfertarget data item for which deficiency in learning has been detected isdisplayed. The unlabeled transfer target data item may be, for example,a lifelog data item; however, the lifelog data item itself is notdisplayed in this screen.

Test items 601 are one or more test items selected by the user fromamong the test items included in the workflow data, The user inputsresult values 604 for the test items as associative data items, forexample, by asking the patient, for whom the unlabeled transfer targetdata item is obtained, to perform actions indicated by the test items601 or by asking the patient about the test items 601.

For example, suppose that “Yes”, “Yes”, and “No” are respectively inputfor the first test item, the second test item, and the third test item.

In response to the input, the correct solution obtaining unit 250obtains one or more labeled transfer target data items assigned the sameassociative data items as the value of the input result 604 of the testitem from among the labeled transfer target data items stored in thelabeled transfer target data storage unit 410. The correct solutionobtaining unit 250 may obtain one or more labeled transfer target dataitems assigned associative data items that are close to (that is, thathave a difference smaller than a certain threshold) the value of theinput result 604 of the test item.

The correct solution obtaining unit 250 presents, to the user via theuser interface unit 440, a label group 605 that includes labels assignedto the obtained transfer target data items. A label chart 606 displays,in a chart format, labels selected by the user from among the labelgroup 605.

In response to pressing of an add item button 602, the test item 601 isadded. In response to pressing of a delete item button 603, the testitem 601 is deleted. The add item button 602 and the delete item button603 are used when the label group 605 that is displayed in accordancewith the displayed test items 601 is deficient and excessive,respectively.

The user selects, from among the label group 605, a label that isconsidered to be the closest to the correct attribute value of theunlabeled transfer target data item for which deficiency in learning isdetected, and then presses an OK button 607. In response to pressing ofthe OK button 607, a labeled transfer target data item, which is theunlabeled transfer target data item assigned the selected label, isstored in the labeled transfer target data storage unit 410.

In addition, in response to pressing of a relearn button 608, the weightW used in the neural network apparatus 100 is readjusted by using thelabeled transfer target data items stored in the labeled transfer targetdata storage unit 410.

In response to pressing of the OK button 607, a new labeled transfertarget data item is stored in the labeled transfer target data storageunit 410. In response to pressing of the relearn button 608, the weightW is readjusted. In this way, more accurate regression can be performedfor an unlabeled transfer target data item for which regression hasfailed.

As described above, an unlabeled transfer target data item for whichdeficiency in learning is detected or an associative data item of theunlabeled transfer target data item is presented to the user. A label ofthe unlabeled transfer target data item is accepted from the user. Inthis way, additional learning for coping with deficiency in learning canbe performed.

In particular, in the case where it is difficult to directly specify alabel of the unlabeled transfer target data item, the user is permittedto specify the label of the unlabeled transfer target data item on thebasis of the associative data item. In this way, additional learning isperformed by using the label and the unlabeled transfer target dataitem.

A description will now be given of the case where a common label isspecified collectively for a plurality of unlabeled transfer target dataitems for which deficiency in learning is detected. An example will bedescribed below in which a plurality of unlabeled transfer target dataitems whose evaluation values output from the same unrelated unitdeviate from the reference range or associative data items of theplurality of unlabeled transfer target data items are presented to auser, and a label common to the plurality of unlabeled transfer targetdata items is accepted from the user.

FIG. 23 is a diagram illustrating an example of a selection screenpresented to a user via the user interface unit 440. An image group 501includes images whose evaluation values output from the same unrelatedunit deviate from the reference range. The image group 503 includeslesion images stored in the labeled transfer target data storage unit410, and the image group 505 includes non-lesion images stored in thelabeled transfer target data storage unit 410. In addition, the images502, 504, and 506 are enlarged images of images selected by the userrespectively from the image groups 501, 503, and 505.

If the user determines that all the images included in the image group501 are classified into a single category as a result of observation ofthese images, the user selects an image belonging to the category fromamong the image groups 503 and 505 and then presses the OK button 507.In response to pressing of the OK button 507, labeled transfer targetdata items, which are the images included in the image group 501assigned the label of the selected image, are stored in the labeledtransfer target data storage unit 410.

In addition, in response to pressing of the relearn button 508, theweight W used in the neural network apparatus 100 is readjusted by usingthe labeled transfer target data items stored in the labeled transfertarget data storage unit 410. At that time, the output layer adjustingunit 220 may remove the unrelated unit that has output the evaluationvalues deviating from the reference range for the images included in theimage group 501 before the weight W is readjusted.

The contents described above is regarding the classification problem.The case of the regression problem will be described next.

FIG. 24 is a diagram illustrating an example of a selection screenpresented to a user via the user interface unit 440. In the exampleillustrated in FIG. 24, pieces of information regarding two unlabeledtransfer target data items whose evaluation values output from the sameunrelated unit deviate from the reference range are displayed in thescreen side by side. The unlabeled transfer target data items may be,for example, lifelog data items; however, the lifelog data itemsthemselves are not displayed in this screen.

Each of test items 611 and 621 are one or more test items selected bythe user from among the test items included in the workflow data, andare an example of associative data items. The user inputs result values614 and 624 of the respective test items, for example, by asking thepatient, for whom each of the unlabeled transfer target data items isobtained, to perform actions indicated by the test items 611 and 621 orby asking the patient about the test items 611 and 621.

In response to the input, one or more labeled transfer target data itemseach of which is assigned an associative data item that is the same orclose to the value of the input result 614 of the test item areobtained, and a label group 615 including the labels of the one or morelabeled transfer target date items is displayed. In addition, one ormore labeled transfer target data items each of which is assigned anassociative data item that is the same or close to the value of theinput result 624 of the test item are obtained, and a label group 625including the labels of the one or more labeled transfer target dataitems is displayed.

Label charts 613 and 623 display, in a chart format, the labels selectedby the user from the label groups 615 and 625, respectively.

The user selects a label considered to be the closest to the correctattribute value that is common to the two unlabeled transfer target dataitems from the label groups 615 and 625 and then presses the OK button607. In response to pressing of the OK button 607, labeled transfertarget data items, which are the two unlabeled transfer target dataitems assigned the selected label, are stored in the labeled transfertarget data storage unit 410.

In addition, in response to pressing of the relearn button 608, theweight W used in the neural network apparatus 100 is readjusted by usingthe labeled transfer target data items stored in the labeled transfertarget data storage unit 410. At that time, the output layer adjustingunit 220 may remove the unrelated unit that has output the evaluationvalues deviating from the reference range for the two unlabeled transfertarget data items before the weight W is readjusted.

Such a configuration allow the user to interactively specify the correctlabel while viewing the unlabeled transfer target data items or theassociative data items of the unlabeled transfer target data items whichare presented when deficiency in learning is detected. In addition, theweight values can also be readjusted through additional learning byusing the label, and an unrelated item that may possibly cause incorrectfeature extraction may be removed one by one.

Although the transfer learning apparatuses according to the embodimentsof the present disclosure have been described above, the presentdisclosure is not limited to these embodiments.

For example, the transfer learning system 301 may be implemented byusing a computer. FIG. 25 is a block diagram illustrating an example ofa hardware configuration for implementing the transfer learning system301.

The transfer learning system 301 includes a computer 700, a keyboard 711and a mouse 712 used to input an instruction to the computer 700, adisplay 710 used to present information, such as a computation resultobtained by the computer 700, and an optical disc drive (ODD) 708 forreading a program executed by the computer 700.

The program executed by the transfer learning system 301 is stored on acomputer-readable optical storage medium 709 and is read by the ODD 708,Alternatively, the program is read by a network interface controller(NIC) 706 via a computer network.

The computer 700 includes a central processing unit (CPU) 701, aread-only memory (ROM) 704, a random access memory (RAM) 703, a harddisk drive (HDD) 705, the NIC 706, and a bus 707.

The computer 700 may further include a graphics processing unit (CPU)702 in order to perform high-speed computation.

The CPU 701 and the CPU 702 execute a program that is read by the ODD708 or the NIC 706. The ROM 704 stores a program and data that arenecessary for the computer 700 to operate. The RAM 703 stores data, suchas parameters used during execution of the program. The HDD 705 storesprograms and data, for example. The NIC 706 communicates with anothercomputer via a computer network. The bus 707 connects the CPU 701, theROM 704, the RAM 703, the HDD 705, the NIC 706, the display 710, thekeyboard 711, the mouse 712. and the ODD 708 to one another. Thekeyboard 711 and the mouse 712, and the ODD 708 connected to thecomputer 700 may be omitted, for example, in the case where the display710 includes a touchscreen and in the case where the NIC 706 is used,respectively.

Further, some or all of constituents of the transfer learning system301, the constituents corresponding to the above-described apparatuses,may be implemented by a single system large scale integration (LSI). Asystem LSI is a super-multifunctional LSI in which a plurality ofconstituent units are integrated on a single chip. Specifically, asystem LSI is a computer system including a microprocessor, a ROM, and aRAM. The RAM stores a computer program. The microprocessor operates inaccordance with the computer program, whereby the system LSI implementsthe functions.

Alternatively, some of or all of the constituents corresponding to theabove-described apparatuses may be implemented by an integrated circuit(IC) card or a unit module detachably attached to each of theapparatuses. The IC card or unit module is a computer system including amicroprocessor, a ROM. and a RAM. The IC card or unit module may includethe super-multifunctional LSI described above. The microprocessoroperates in accordance with a computer program, whereby the IC card orunit module implements the functions. The IC card or unit module may betamper-resistant.

Further, the embodiments of the present disclosure may be configured asmethods described above, In addition, the present disclosure mayencompass a computer program that implements these methods by using acomputer and a digital signal based on the computer program.

Furthermore, the present disclosure may encompass non-transitorycomputer-readable storage media storing thereon the computer program orthe digital signal, for example, a flexible disk, a hard disk, a CD-ROM,a magneto-optical (MO) disk, a digital versatile disc (DVD), a DVD-ROM,a DVD-RAM, a Blu-ray (registered trademark) Disc (BD), and asemiconductor memory. In addition, the present disclosure may encompassthe digital signal stored on these non-transitory computer-readablestorage media.

Moreover, the present disclosure may encompass a configuration in whichthe computer program or the digital signal is transmitted via anelectric communication line, a wireless or wired communication circuit,a network such as the Internet, data broadcasting, or the like.

Further, the present disclosure may be implemented by an independentcomputer system by transporting the non-transitory storage medium afterstoring the computer program or the digital signal thereon or bytransmitting the computer program or the digital signal via the network.

In addition, the present disclosure may be implemented in the followingmanner. As illustrated in FIG. 26, a data server 800 is preparedseparately from the computer 700. Data to be stored on a memory or thelike may be stored in the data server 800, and the computer 700 may readinformation of the data via the network or the like. The number ofcomputers 700 used to read the information from the data server 800 isnot necessarily one and may be plural. In such a case, each of thecomputers 700 may implement at least one of the constituents of thetransfer learning system 301.

Further, each of the embodiments described above and each of themodifications described above may be combined.

The embodiments disclosed herein are exemplary in all aspects and shouldbe considered to be non-limiting. The scope of the present disclosure isindicated not by the above description but by the scope of the claimsand is intended to encompass all modifications within the meaning andthe scope equivalent to the scope of the claims.

According to the embodiments of the present disclosure, data learningcan be performed without being affected by negative transfer caused byoverfitting and data combination, Accordingly, the embodiments of thepresent disclosure are applicable to a data learning apparatus thatrecognizes and classifies images or sensor values.

What is claimed is:
 1. A transfer learning apparatus comprising: atransfer target data evaluator that inputs a plurality of labeledtransfer target data items to a neural network apparatus, each of theplurality of labeled transfer target data items being assigned a labelof a corresponding evaluation item from among one or more evaluationitems, the neural network apparatus having been trained by using aplurality of labeled transfer source data items and including in anoutput layer one or more output units, the number of which is largerthan or equal to the number of evaluation items, and that obtainsevaluation values output from the respective output units; and an outputlayer adjuster that preferentially assigns, to each of the one or moreevaluation items, an output unit from which the evaluation value havingthe smallest difference from the label of the evaluation item isobtained with a higher frequency among the output units, as an outputunit that outputs the evaluation value of the evaluation item.
 2. Thetransfer learning apparatus according to claim 1, wherein the outputlayer adjuster computes, for each of the one or more evaluation items, afrequency distribution of the output units from which the evaluationvalue having the smallest difference from the label of the evaluationitem is obtained for the plurality of labeled transfer target dataitems, preferentially selects, from among combinations for associatingeach of the one or more evaluation items with a different one of theoutput units, a combination for which a sum of the frequencies of theassociated output units is larger, and assigns, to each of the one ormore evaluation items, the output unit associated with the evaluationitem by the selected combination as an output unit for the evaluationitem.
 3. The transfer learning apparatus according to claim 1, furthercomprising: a weight adjuster that updates, by using a weight value thathas been learned with the plurality of labeled transfer source dataitems as an initial value, the weight value in the neural networkapparatus through supervised learning using the plurality of labeledtransfer target data items.
 4. The transfer learning apparatus accordingto claim 3, wherein the weight adjuster sets weight values of all unitsincluded in the neural network apparatus as targets to be updated. 5.The transfer learning apparatus according to claim 3, wherein each ofthe plurality of labeled transfer source data items is assigned a labelcorresponding to one of the output units, and wherein the weightadjuster further updates the weight value in the neural networkapparatus through supervised learning using labels corresponding to theoutput units assigned by the output layer adjuster from among the labelsassigned to the plurality of labeled transfer source data items.
 6. Thetransfer learning apparatus according to claim 3, wherein the weightadjuster performs unsupervised learning in each of one or more hiddenlayers included in the neural network apparatus prior to the supervisedlearning.
 7. The transfer learning apparatus according to claim 1,wherein the neural network apparatus includes in the output layer theoutput units, the number of which is larger than the number ofevaluation items, and wherein the transfer learning apparatus furthercomprises: a learning deficiency detector that inputs one or moreunlabeled transfer target data items to the neural network apparatus,obtains an evaluation value output from an output unit that is notassigned by the output layer adjuster among the output units, anddetects deficiency in learning if the evaluation value deviates from areference range.
 8. The transfer learning apparatus according to claim7, further comprising: a correct solution obtainer that accepts, in acase where deficiency in learning is detected for the unlabeled transfertarget data item, a label corresponding to the unlabeled transfer targetdata item from a user, wherein the weight adjuster updates the weightvalue in the neural network apparatus through supervised learning usingthe label accepted from the user and the unlabeled transfer target dataitem.
 9. The transfer learning apparatus according to claim 8, whereinthe correct solution obtainer accepts, from the user, a label that iscommon to a plurality of unlabeled transfer target data items for whichevaluation values output from a single output unit that is not assignedby the output layer adjuster deviate from the reference range, andwherein the weight adjuster updates the weight value in the neuralnetwork apparatus through supervised learning using the label acceptedfrom the user and the plurality of unlabeled transfer target data items.10. The transfer learning apparatus according to claim 8, wherein eachof the plurality of labeled transfer target data items is furtherassigned an associative data item, wherein the correct solution obtaineraccepts, from the user, an associative data item for the unlabeledtransfer target data item, and wherein the weight adjuster performs thesupervised learning by using a label of a labeled transfer target dataitem that is assigned the associative data item accepted from the userand the unlabeled transfer target data item.
 11. A transfer learningsystem comprising: the transfer learning apparatus according to claim 1;and the neural network apparatus, wherein the transfer learningapparatus performs transfer learning in the neural network apparatus.12. A transfer learning method comprising: inputting a plurality oflabeled transfer target data items to a neural network apparatus, eachof the plurality of labeled transfer target data items being assigned alabel of a corresponding evaluation item from among one or moreevaluation items, the neural network apparatus having been trained byusing a plurality of labeled transfer source data items havingevaluation items different from the plurality of labeled transfer targetdata items and including in an output layer one or more output units,the number of which is larger than or equal to the number of evaluationitems, and obtaining evaluation values output from the respective outputunits; and preferentially assigning, to each of the one or moreevaluation items, an output unit from which the evaluation value havingthe smallest difference from the label of the evaluation item isobtained with a higher frequency among the output units, as an outputunit that outputs the evaluation value of the evaluation item.
 13. Anon-transitory computer-readable recording medium storing thereon aprogram for causing a device including a processor to execute a transferlearning process, the transfer learning process comprising: inputting aplurality of labeled transfer target data items to a neural networkapparatus, each of the plurality of labeled transfer target data itemsbeing assigned a label of a corresponding evaluation item from among oneor more evaluation items, the neural network apparatus having beentrained by using a plurality of labeled transfer source data itemshaving evaluation items different from the plurality of labeled transfertarget data items and including in an output layer one or more outputunits, the number of which is larger than or equal to the number ofevaluation items, and obtaining evaluation values output from therespective output units; and preferentially assigning, to each of theone or more evaluation items, an output unit from which the evaluationvalue having the smallest difference from the label of the evaluationitem is obtained with a higher frequency among the output units, as anoutput unit that outputs the evaluation value of the evaluation item.14. A transfer learning method comprising: performing a first process byusing a neural network including a plurality of units; performing asecond process by using the neural network; and performing a thirdprocess; wherein a plurality of weight values for the plurality of unitsare determined by using a plurality of first datasets prior to the firstprocess and the second process, wherein the plurality of units include aplurality of output layer units included in an output layer of theneural network, and each of the plurality of first datasets includes aplurality of pixel values of an image not related to a first subjectmatter, wherein the first process includes a fourth process and a fifthprocess, wherein the fourth process includes performing a sixth processn times while incrementing k from 1 to n, where n denotes a total numberof a plurality of second datasets and k is a natural number, the sixthprocess including inputting a k-th dataset of the plurality of seconddatasets to the neural network and obtaining k-th information indicatingan output layer unit that outputs a first valid value from among theplurality of output layer units, wherein the fifth process includesdetermining, for each of the plurality of output layer units, aprobability of outputting the first valid value on the basis of a resultof the fourth process, wherein the second process includes a seventhprocess and an eighth process, wherein the seventh process includesperforming a ninth process m times while incrementing j from 1 to m,where m denotes a total number of a plurality of third datasets and jdenotes a natural number, the ninth process including inputting a j-thdataset of the plurality of third datasets to the neural network andobtaining j-th information indicating an output layer unit that outputsa second valid value from among the plurality of output layer units,wherein the eighth process includes determining, for each of theplurality of output layer units, a probability of outputting the secondvalid value on the basis of a result of the seventh process, whereineach of the plurality of second datasets and the plurality of thirddatasets includes a plurality of pixel values of an image related to thefirst subject matter, each of the plurality of second datasets hasattribute information indicating a first data type, each of theplurality of third datasets has attribute information indicating asecond data type different from the first data type, and the number offirst datasets is larger than (n+m), and wherein the third process is aprocess of selecting two output layer units from among the plurality ofoutput layer units on the basis of a result of the first process and aresult of the second process.
 15. The transfer learning method accordingto claim 14, wherein the image not related to the first subject matteris a non-organ image and the image related to the first subject matteris an organ image, and wherein the attribute information indicating thefirst data type is the attribute information indicating a lesion and theattribute information indicating the second data type is the attributeinformation indicating a non-lesion.